Skip to content

fix: use lenient validation for existing passwords (@fehmer)#8186

Open
fehmer wants to merge 2 commits into
masterfrom
feature/fix-password-validation
Open

fix: use lenient validation for existing passwords (@fehmer)#8186
fehmer wants to merge 2 commits into
masterfrom
feature/fix-password-validation

Conversation

@fehmer

@fehmer fehmer commented Jul 3, 2026

Copy link
Copy Markdown
Member

No description provided.

@monkeytypegeorge monkeytypegeorge added frontend User interface or web stuff packages Changes in local packages labels Jul 3, 2026
Comment thread frontend/src/ts/auth.tsx
* @param options - Set `isNew: true` for password creation/registration.
* @returns A Zod string schema.
*/
export function getPasswordSchema(options?: { isNew: boolean }): ZodString {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe move the isdevenv guard to the top?

if (isDevEnv) return z.string().min6

@github-actions github-actions Bot added the waiting for update Pull requests or issues that require changes/comments before continuing label Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff packages Changes in local packages waiting for update Pull requests or issues that require changes/comments before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants